﻿using System;
using ExFlash.Records;

namespace ExFlash.Tags
{
    public class SetBackgroundColorTag : Tag
    {
        public RGBRecord BackgroundColor
        {
            get;
            private set;
        }

        public SetBackgroundColorTag(Int32 offset)
            : base(TagCodes.SetBackgroundColor, RGBRecord.RGBRecordSize, offset)
        {

        }

        public override void SwfDeserialize(BinaryBitReader reader)
        {            
            BackgroundColor = new RGBRecord();
            BackgroundColor.SwfDeserialize(reader);
        }

        public override void SwfSerialize(byte[] arr, ref int offset)
        {
            throw new NotImplementedException();
        }
    }
}
